
import * as API from '../common/api'
import Immutable from 'seamless-immutable'

const initialState = Immutable(
  {
    themeColor: 'red',
    content: "王雷"
  }
)

export default function changeColor(state = initialState, action) {
  console.log(action.type)
    switch (action.type) {
        case API.CHANGE_COLOR:
            return {
                ...state,
                themeColor: action.themeColor
            }
        default:
            return state
    }
}